package com.nearby.demand.request;

/**
 * Created by IME on 2015/12/27.
 */
public enum EnumSuccess {
    flagTrue("true"), flagFalse("false");

    private EnumSuccess(String valString) {
        this.valueString = valString;
    }

    public static int size() {
        return EnumSuccess.values().length;
    }

    public String valueString;

    public String toString() {
        return valueString;
    }

    public static EnumSuccess valueof(String vaString) {
        if (vaString.equals("true")) {
            return EnumSuccess.flagTrue;
        } else if (vaString.equals("fase")) {
            return EnumSuccess.flagFalse;
        }
        return null;

    }
}
